package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * @Author np
 * @Date 2020/10/9 10:08
 * @Version 1.0
 * @Description: 角色
 */
public interface RoleService {
    public PageResult findPage(QueryPageBean queryPageBean);

    public void add(Role role, Integer[] permissionIds);

    public List<Role> findAll();

    public List<Integer> findRoleIdsByUserId(Integer userId);
}
